<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/14
 * Time: 17:36
 */

namespace app\admin\validate;


use think\Validate;

class Banner extends Validate
{
    protected $rule = [
        ['id','require','id不能为空'],
        ['title','require','标题不能为空'],
        ['image','require','图片必须添加']
    ];

    protected $scene = [
        'add' => ['title','image'],
        'update' => ['title'],
    ];

}